Skip to content

Jules - fixe cibuildwheel build and tests with pyodide.#4679

Merged
julian-smith-artifex-com merged 7 commits into
mainfrom
jules
Sep 4, 2025
Merged

Jules - fixe cibuildwheel build and tests with pyodide.#4679
julian-smith-artifex-com merged 7 commits into
mainfrom
jules

Conversation

@julian-smith-artifex-com
Copy link
Copy Markdown
Collaborator

No description provided.

In build() with pyodide, use python-3.13 to make setjmp/longjmp work.

In cibw_do_test_project(), add C++ library libqwerty.so, to make test more
similar to PyMuPDF. With Pyodid, it seems that we need to put libqwerty.so in
top level of wheel, not in <package>.libs/ as we did with Python-3.12.

Changed some print(...) statements to log(...).

On Pyodide don't add verbose `-s` flag to pytest flags.
Don't set -fwasm-exceptions in XCFLAGS and XCXXFLAGS.

Place libmupdf.so and libmupdfcpp.so in root directory of wheel instead of
`PyMuPDF.libs/`.
Pyodide does not support child processes or multiprocesses, so those tests that
use these features now return immediately if we are running on Pyodide.
@julian-smith-artifex-com julian-smith-artifex-com merged commit eac1789 into main Sep 4, 2025
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants